package com.example.czxyindex.web.remote;

import com.yc.czxy.bean.Topic;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient("czxy-school")
@RequestMapping("topic")
public interface ITopicAction {

    @RequestMapping("local")
    //@RequestParam用map集合需要使用该注解
    List<Topic> local(@RequestParam Map<String,Object> map);

    @GetMapping("all")
    List<Topic> selectTopic();
}
